package core.communication.message;

import java.util.ArrayList;
import java.util.List;

import core.communication.configurationNode.ConfigurationNode;

public class ConfigurationMessage extends Message {
	private static final long serialVersionUID = 5107234441650496892L;

	List<ConfigurationNode> configurationNodes = new ArrayList<ConfigurationNode>();

	public ConfigurationMessage(String destinationUri, List<ConfigurationNode> configurationNodes) {
		super();
		setPriority(MessagePriority.NORMAL);
		setMessageType(MessageType.Configuration);
		setDestinationURI(destinationUri);
		this.configurationNodes.addAll(configurationNodes);
		setDirection(Direction.DOWN);
	}

	public List<ConfigurationNode> getConfigurationNodes() {
		return configurationNodes;
	}
}
